package com.hk.huakangcompany.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author: KangWang
 * Date: 2021/5/18 16:23
 * State：新闻简介
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class News implements Serializable {

    private Integer id;
    private String title;
    private String subhead;//副标题
    private String content;//新闻类容
    private String releaseDate;//发布日期
    private String author;//作者
    private Integer hits;//浏览次数
    private Integer typeId;//对应新闻类型ID
//  不与数据库对应
    private String newsType; //对应新闻类型

    private String gmtCreate;
    private String gmtModified;

    public News(Integer id, String title, String subhead, String content, String releaseDate, String author, Integer hits, Integer typeId, String gmtCreate, String gmtModified) {
        this.id = id;
        this.title = title;
        this.subhead = subhead;
        this.content = content;
        this.releaseDate = releaseDate;
        this.author = author;
        this.hits = hits;
        this.typeId = typeId;
        this.gmtCreate = gmtCreate;
        this.gmtModified = gmtModified;
    }

}
